//数据规则模型
export interface SysDataRule {
  /// <summary>
  /// 数据规则ID
  /// </summary>
  RuleId: string;

  /// <summary>
  /// 规则名称
  /// </summary>
  RuleName: string;

  /// <summary>
  /// 菜单id
  /// </summary>
  MenuId: string;

  /// <summary>
  /// 公司key
  /// </summary>
  CorporationKey: string;

  /// <summary>
  /// 系统key
  /// </summary>
  SystemKey: string;

  /// <summary>
  /// 规则类型：1：数据行规则 2：数据按钮规则
  /// </summary>
  RuleType: number;

  /// <summary>
  /// 规则json
  /// </summary>
  RuleJson: string;

  /// <summary>
  /// 英文匹配规则
  /// </summary>
  AnalysisRule: string;

  /// <summary>
  /// 中文匹配规则
  /// </summary>
  AnalysisRule_CN: string;

  /// <summary>
  /// 是否打开
  /// </summary>
  IsOpen: boolean;

  /// <summary>
  /// 备注
  /// </summary>
  Remark: string;

  /// <summary>
  /// 排序
  /// </summary>
  Sort: number;

}

//数据规则输入模型
export interface SysDataRuleInput extends SysDataRule {

  //绑定按钮集合
  ButtonIds: string[];

  //字段ID
  FieldId:string;
}


//数据规则输出模型
export interface SysDataRuleOutPut {
  /// <summary>
  /// 数据规则ID
  /// </summary>
  ruleId: string;

  /// <summary>
  /// 规则名称
  /// </summary>
  ruleName: string;

  /// <summary>
  /// 公司key
  /// </summary>
  corporationKey: string;

  /// <summary>
  /// 公司名称
  /// </summary>
  corporationName: string;

  /// <summary>
  /// 系统key
  /// </summary>
  systemKey: string;

  /// <summary>
  /// 系统名称
  /// </summary>
  systemName: string;

  //菜单ID
  menuId: string;

  //所属菜单
  menuName: string;

  /// <summary>
  /// 规则类型：1：数据行规则 2：数据按钮规则
  /// </summary>
  ruleType: number;

  //规则类型字符
  ruleTypeStr: string;

  /// <summary>
  /// 规则json
  /// </summary>
  ruleJson: string;

  /// <summary>
  /// 英文匹配规则
  /// </summary>
  analysisRule: string;

  /// <summary>
  /// 中文匹配规则
  /// </summary>
  analysisRule_CN: string;

  /// <summary>
  /// 是否使用
  /// </summary>
  isOpen: boolean;

  /// <summary>
  /// 备注
  /// </summary>
  remark: string;

  /// <summary>
  /// 排序
  /// </summary>
  sort: number;

  /// <summary>
  /// 创建时间
  /// </summary>
  createTime: string;

  /// <summary>
  /// 创建人员
  /// </summary>
  createUser: string;

  /// <summary>
  /// 创建人姓名
  /// </summary>
  userName: string;
}